<extend name="Public/base" />

<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>
    <div class="cf">
        <div class="fl">
            <a class="btn" href="{:U('addInformation')}">新 增</a>
        </div>

    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table>
            <thead>
            <tr>
                <th>ID</th>
                <th>封面图</th>
                <th>标题</th>
                <th>分类</th>
                <th>来源</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>

                        <td>{$vo.id}</td>
                        <td><img src="{$vo.img|getPicture}" width="100px" max-height="100px" /></td>
                        <td>{$vo.title}</td>
                        <td>{:getDbFieldValue('information_type', array('id' => $vo['type_id']), 'name')}</td>
                        <td>{$vo.from}</td>
                        <td>{$vo.create_time|time_format}</td>
                        <td>
                            <a href="{:U('upInformation',array('id'=>$vo['id']))}" class="authorize">编辑</a> |
                            <a href="{:U('delInformation',array('id'=>$vo['id']))}" class="authorize">删除</a>
                        </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="6" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U("Manage/informationList")}');
    </script>
</block>